package xyz.labmem.base.sys.module.config.entity

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import xyz.labmem.base.core.consts.*

@TableName("sys_config")
@ApiModel(value = "系统设置")
class SysConfig {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键")
    var id: String? = null

    @ApiModelProperty(value = "参数名")
    var configName: String? = TIME_CONFIG_NAME

    @ApiModelProperty(value = "参数id")
    var configId: String? = TIME_CONFIG_ID

    @ApiModelProperty(value = "token有效期，单位s 默认1天, -1代表永不过期 86400")
    var timeout: Long? = 86400

    @ApiModelProperty(value = "token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒;默认 -1代表永不过期")
    var activityTimeout: Long? = -1



}